<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>TESTER</title>
</head>
<body>

<h1>添加购物车</h1>
<p>需要在购物车记录邀请渠道商店铺id</p>
<form name="form" method="post"  onsubmit="javascript:return go()">
签名：<input name="sign" id="sign" value="" /><br>
商品信息goods：
<textarea style="width:70%" rows="22" name="goods">[
	{
		"goods_id":"1",
		"quantity":"2",
		"spec":"白色XL"
	},
	{
		"goods_id":"2",
		"quantity":"1",
		"spec":"黑色XL"
	}
]</textarea><br/>
edit：<input name="edit" id="edit" value="" /> 根据goods参数的quantity值进行操作, 1:购物车修改商品总数量, 0:进行累加(数字)/累减(-数字)<br>

<input type=submit value=submit>
</form>
<script>
function go(){
	document.form.action = "/api.php?app=cart&act=add_cart&version=&sign="+document.getElementById('sign').value;
	document.form.submit();
	return true;
}
</script>
</body>
</html>
